package com.yun.zf.common.admin.model.house;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class HouseInfo {


    @ApiModelProperty(value = "补充信息id")
    private String infoId;

    @NotNull(message = "房源表id代码不能为空")
    @ApiModelProperty(value = "房源id")
    private String basicId;

    @ApiModelProperty(value = "家具，卖房显示业主可留下的项目1：床，2：衣柜，3桌椅，4：无家具")
    private String furniture;

    @ApiModelProperty(value = "房屋设备，1暖气2宽带3天然气4无设备")
    private String equipment;

    @ApiModelProperty(value = "电器1电视2冰箱3洗衣机4空调5热水器6微波炉7燃气灶8油烟机9无家电")
    @TableField("electricAppliance")
    private String electricappliance;

    @ApiModelProperty(value = "房源装修情况,mp 毛坯，jian 简装，jing 精装，hz 豪华装修")
    private String fixtures;

    @ApiModelProperty(value = "装修年份")
    private Integer fixturesYear;

    @ApiModelProperty(value = "车位数")
    private Integer parking;

    @ApiModelProperty(value = "格局是否有变动 ，1无 2有")
    private Integer isChange;

    @ApiModelProperty(value = "业主是否承担佣金， 1 不愿意，2 愿意")
    private Integer isOwnerPay;

    @ApiModelProperty(value = "付款方式1线上2线下、3无")
    private Integer payType;

    @ApiModelProperty(value = "房屋现状：1空置、2待清出")
    private Integer status;

    @ApiModelProperty(value = "可入住时间,如果为ss则可随时入住")
    private String checkInTime;

    @ApiModelProperty(value = "联系人是否为产权人 是Y，否N")
    private String propertyOwner;

    /**
     * 房源标签写入配置表，根据类型，每个配置不一样的标签
     * 房源标签，出租 近地铁：JDT ，拎包入住：LBRZ,精装修：JZX ,押一付一：YYFY,随时看房：SSKF,双卫：SW
     * 合租：独卫：DW, 独立阳台：DLYT，近地铁：JDT ，拎包入住：LBRZ,精装修：JZX ,押一付一：YYFY,随时看房：SSKF
     * 出售：必看好房：BKHF ,满五年：MWN， 满两年：MLN,随时看房 SSKF，近地铁：JDT
     */
    @ApiModelProperty(value = "房源标签")
    private String tags;


    @ApiModelProperty(value = "是否推荐是Y 否N")
    private String isRecommend;


    @ApiModelProperty(value = "推荐理由")
    private String recommendReason;


    //--------------------租房信息
    @ApiModelProperty(value = "租房信息id")
    private Long rentId;

    @ApiModelProperty(value = "是否首次出租0首次，1非首次")
    private Integer firstRental;

    @ApiModelProperty(value = "租期要求起期")
    @NotNull(message = "租期要求起期不能为空")
    private Integer leaseStart;

    @ApiModelProperty(value = "租期要求止期")
    @NotNull(message = "租期要求止期不能为空")
    private Integer leaseEnd;

    @ApiModelProperty(value = "租客要求，卖房不显示此项，上班族，仅限女生等")
    private String requirement;

    @ApiModelProperty(value = "附加要求")
    private String extraRequirement;


    @ApiModelProperty(value = "租期单位，月，年")
    @NotBlank(message = "单位不能为空")
    private String unit;

    @ApiModelProperty(value = "卧室类型 ，如果是合租必选 1主卧 ，2次卧")
    private Integer bedroomType;

    @ApiModelProperty(value = "选择合租，出租卧室是否有阳台Y是N否")
    private String isBalcony;

    @ApiModelProperty(value = "选择合租，出租卧室是否有独卫Y是N否")
    private String isToilet;

    /**
     * 出租方式1整租，2合租 如果第一个页面选择出租，则此处必选
     */
    @ApiModelProperty(value = "出租方式1整租，2合租 如果第一个页面选择出租，则此处必选")
    private int rentType;

    // 出售信息-----------------

    private Long saleId;

    @ApiModelProperty(value = "房屋用途，1普通住宅2,商业类，3别墅，4四合院，5车位，6其它")
    private Integer houseUse;

    @ApiModelProperty(value = "供暖类型，集中供暖jg,自供暖 zg")
    private String heating;

    @ApiModelProperty(value = "1商品房，2公房，3经济房，4其它")
    private Integer ownerShip;

    @ApiModelProperty(value = " 建筑类型，1塔楼，2板楼，3板塔结合")
    private Integer buildingType;

    @ApiModelProperty(value = "建成年份")
    private int buildYear;

    @ApiModelProperty(value = "是否存在贷款，Y是N否")
    private String isLoan;

    @ApiModelProperty(value = "剩余贷款")
    private BigDecimal loanAmount;

}
